package com.example.handpose_front.HomePage;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.annotation.Nullable;

import com.example.handpose_front.BaseActivity;
import com.example.handpose_front.R;

public class StartActivity extends BaseActivity implements View.OnClickListener {

    // 一个按钮
    private Button loginBtn;

    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);
        initView();
        initEvent();
    }

    private void initView() {
        // 初始化
        loginBtn = findViewById(R.id.login_tv);
    }

    private void initEvent() {
        // 设置点击事件
        loginBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        if (v.getId() == loginBtn.getId()){
            Intent intent = new Intent();
            intent.setClass(this, HomeActivity.class);
            startActivity(intent);
        }
    }
}